﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using RestSharp;

namespace Esign.Net.Input
{
    [Serializable]
    public class InputBase
    {
        /// <summary>
        /// 请求类型
        /// </summary>
        [JsonIgnore]
        internal Method ReqType { get; set; }=Method.POST;

        /// <summary>
        /// 请求url
        /// </summary>
        [JsonIgnore]
        internal string Url { get; set; }

        /// <summary>
        /// 配置文件
        /// </summary>
        [JsonIgnore]
        public Config ConfigInfo { get; set; }
    }

    public interface IInput  
    {
        T Build<T>(T t, Config config) where T : InputBase, new();
    }


}
